import { toRaw } from 'vue'
import { useAccountStore } from '@/store'
export const useUserInfo = () => {
  const accountStore = useAccountStore()
  const { communityId, floorNum, roomNum } = accountStore.userInfo
  return {
    bindAddress: `${communityId} ${floorNum} ${roomNum}`, // 格式化小区地址
    token: accountStore.token,
    userInfo: accountStore.userInfo
  }
}
